Matthias Clasen [Sun, 25 Oct 2015 21:19:01 +0000 (17:19 -0400)]
Adwaita: Don't use GtkInfoBar type name
We have a proper element name for it now.
Matthias Clasen [Sun, 25 Oct 2015 21:18:20 +0000 (17:18 -0400)]
infobar: Add a name to the css node
This lets us avoid the type name in css.
Matthias Clasen [Sun, 25 Oct 2015 20:29:11 +0000 (16:29 -0400)]
HighContrast: Update separator rendering
Adapt HighContrast t othe changes in the pre-previous commit.
Matthias Clasen [Sun, 25 Oct 2015 20:28:38 +0000 (16:28 -0400)]
Adwaita: Update separator styling
Adapt Adwaita to the changes in the previous commit.
Matthias Clasen [Sun, 25 Oct 2015 20:27:44 +0000 (16:27 -0400)]
separator: Use the element name separator
Switch GtkSeparator from using the .separator style class to
using the element name separator for its css node.
Matthias Clasen [Sun, 25 Oct 2015 19:43:41 +0000 (15:43 -0400)]
Adwaita: Update accel label styling
Adapt Adwaita to the changes in the previous commit.
Matthias Clasen [Sun, 25 Oct 2015 19:42:40 +0000 (15:42 -0400)]
accel label: Use a css node for the accelerator
Use a permanent subnode with name accelerator instead of the
.accelerator style class.
Matthias Clasen [Sun, 25 Oct 2015 19:21:52 +0000 (15:21 -0400)]
HighContrast: Update spinner rendering
Adapt HighContrast to the changes in the pre-previous commit.
Matthias Clasen [Sun, 25 Oct 2015 19:21:17 +0000 (15:21 -0400)]
Adwaita: Update spinner styling
Adapt Adwaita to the changes in the previous commit.
Matthias Clasen [Sun, 25 Oct 2015 19:20:23 +0000 (15:20 -0400)]
spinner: Use the element name spinner
Switch GtkSpinner from using the .spinner style class to
using the element name spinner for its css node.
Rico Tzschichholz [Sun, 25 Oct 2015 18:35:33 +0000 (19:35 +0100)]
docs: Add index for 3.20 api
Matthias Clasen [Tue, 20 Oct 2015 15:06:43 +0000 (11:06 -0400)]
Translate GDK_KEY_KP_Decimal according to locale
It makes sense that you should be able to type numbers that are
correctly formatted and parsable according to the current locale,
using just the keypad. This patch makes it so by translating
GDK_KEY_KP_Decimal to the decimal separator for the current locale,
instead of hardcoding a '.'.
https://bugzilla.gnome.org/show_bug.cgi?id=756751
Matthias Clasen [Sun, 25 Oct 2015 17:26:01 +0000 (13:26 -0400)]
quartz: Don't use the instancetype keyword
gdkcursor-quartz.c uses the instancetype keyword, which doesn't seem to
be supported in the version of Objective C that Snow Leopard uses.
Replacing that keyword with the thing it represents makes it build.
Patch by Ryan Hendrickson,
http://bugzilla.gnome.org/show_bug.cgi?id=756770
Matthias Clasen [Sun, 25 Oct 2015 17:11:17 +0000 (13:11 -0400)]
inspector: Be more careful with dead objects
gtk_inspector_object_tree_find_object accesses the type information
of the object, so we can't safely use it on an already decaying
object when we get a weak notify. Instead just walk the tree and
compare pointers, that is safe.
https://bugzilla.gnome.org/show_bug.cgi?id=756852
Matthias Clasen [Sun, 25 Oct 2015 13:20:43 +0000 (09:20 -0400)]
inspector: Improve css node UI
All the other object pages have a title, this one was missing it.
Add one, so the page fits in with the rest.
Matthias Clasen [Sun, 25 Oct 2015 06:13:13 +0000 (02:13 -0400)]
inspector: Allow editing strv-valued properties
These do occur in some places, and we can easily allow editing
them.
Marek Černocký [Sat, 24 Oct 2015 22:19:25 +0000 (00:19 +0200)]
Updated Czech translation
Matthias Clasen [Sat, 24 Oct 2015 21:04:38 +0000 (17:04 -0400)]
Fix the build
Matthias Clasen [Sat, 24 Oct 2015 14:54:56 +0000 (10:54 -0400)]
notebook: Document css nodes and style class
This will have to be updates as we do further changes to the
way GtkNotebook does its rendering.
Matthias Clasen [Sat, 24 Oct 2015 14:32:35 +0000 (10:32 -0400)]
notebook: Drop unneeded code
We no longer need to set the position classes on the main css node,
since they are already set on the per-tab subnodes.
Matthias Clasen [Sat, 24 Oct 2015 14:20:27 +0000 (10:20 -0400)]
HighContrast: Update notebook styling
The switch from .notebook to notebook requires minor changes,
such as moving the style properties into a separate selector.
Matthias Clasen [Sat, 24 Oct 2015 14:17:31 +0000 (10:17 -0400)]
Adwaita: Update notebook styling
The switch from .notebook to notebook requires minor changes,
such as moving the style properties into a separate selector.
Matthias Clasen [Sat, 24 Oct 2015 14:10:33 +0000 (10:10 -0400)]
notebook: Use the element name notebook
Switch GtkNotebook from using the .notebook style class to
using the element name notebook for its main css node.
Matthias Clasen [Sat, 24 Oct 2015 14:11:17 +0000 (10:11 -0400)]
notebook: Cosmetic cleanup
Matthias Clasen [Fri, 23 Oct 2015 20:22:25 +0000 (16:22 -0400)]
entry: Add css node documentation
List the css names and the typical style classes that can be
expected to occur with entries.
Matthias Clasen [Fri, 23 Oct 2015 20:16:55 +0000 (16:16 -0400)]
HighContrast: Update entry progress rendering
Adapt HighContrast to the changes in the pre-previous commit.
Matthias Clasen [Fri, 23 Oct 2015 20:13:43 +0000 (16:13 -0400)]
Adwaita: Update entry progress rendering
Adapt Adwaita to the changes in the previous commit.
Matthias Clasen [Fri, 23 Oct 2015 20:11:08 +0000 (16:11 -0400)]
entry: Use a permanent css node for progress
Create a css node with name progressbar when we start showing progress
in the entry. The node gets the style class .pulse added when we
do pulse mode.
Matthias Clasen [Fri, 23 Oct 2015 19:41:05 +0000 (15:41 -0400)]
Adwaita: Update for entry icon changes
Matthias Clasen [Fri, 23 Oct 2015 19:39:29 +0000 (15:39 -0400)]
entry: Use css nodes for icons
Create css nodes for icons in entries, with name image, and use
gtk_style_context_save_to_node() for them. We still set the
style classes .left and .right on them.
Matthias Clasen [Fri, 23 Oct 2015 18:53:06 +0000 (14:53 -0400)]
HighContrast: Update entry styling
Use the new element name instead of the style class.
Matthias Clasen [Fri, 23 Oct 2015 18:52:27 +0000 (14:52 -0400)]
Adwaita: Update entry styling
Use the new element name instead of the style class.
There is some minor fallout for vertical spin buttons that
will need a second look.
Matthias Clasen [Fri, 23 Oct 2015 18:51:35 +0000 (14:51 -0400)]
entry: Use the element name entry
Set the element name on the css node and drop the .entry class.
Lapo Calamandrei [Fri, 23 Oct 2015 15:12:01 +0000 (17:12 +0200)]
Adwaita: fix switch styling
looks like switch stare are not passed to the slider anymore so
rewrite selectors accordingly.
Lapo Calamandrei [Fri, 23 Oct 2015 14:58:17 +0000 (16:58 +0200)]
Adwaita: generalize .has-open-popup
so it works for any list-row istead of just the ones in a sidebar.
Matthias Clasen [Fri, 23 Oct 2015 11:46:31 +0000 (07:46 -0400)]
shortcut: Improve formatting of ranges
Use a centered ellipsis, to make it look nicer.
Matthias Clasen [Fri, 23 Oct 2015 04:05:46 +0000 (00:05 -0400)]
HighContrast: Update image styling
Use the new element name instead of the type name.
Matthias Clasen [Fri, 23 Oct 2015 04:05:18 +0000 (00:05 -0400)]
Adwaita: Update image styling
Use the new element name instead of the type name.
Matthias Clasen [Fri, 23 Oct 2015 04:04:47 +0000 (00:04 -0400)]
image: Use the element name image
Set hte element name on the CSS node.
Matthias Clasen [Fri, 23 Oct 2015 03:26:53 +0000 (23:26 -0400)]
HighContrast: Update label styling
Use the new element name instead of the style class.
Matthias Clasen [Fri, 23 Oct 2015 03:25:42 +0000 (23:25 -0400)]
Adwaita: Update label styling
Use the new element name instead of the style class.
Matthias Clasen [Fri, 23 Oct 2015 03:18:30 +0000 (23:18 -0400)]
label: Use the element name label
Set the element name on the CSS node, and drop the .label style
class.
Matthias Clasen [Fri, 23 Oct 2015 03:07:54 +0000 (23:07 -0400)]
switch: Document css names a bit
This is still provisional. Better gtk-doc support will be needed
to do better here.
Chun-wei Fan [Fri, 23 Oct 2015 02:33:41 +0000 (10:33 +0800)]
MSVC release builds: Ensure that /LTCG is used
MSVC 2015 changed its default link-time code generation setting to
/LTCG:incremental, which causes problems if /opt:noref is to be used,
meaning that some code will be optimized out by the linker.
Avoid this situtation here by enforcing the use of /LTCG for MSVC 2010+
builds.
Matthias Clasen [Fri, 23 Oct 2015 01:44:03 +0000 (21:44 -0400)]
HighContrast: Update switch styling
Use the new element names instead of the type name and style
classes, just like we did for Adwaita in the previous commit.
Matthias Clasen [Fri, 23 Oct 2015 01:42:20 +0000 (21:42 -0400)]
Adwaita: Update switch styling
Use the new element names instead of the type name and style
classes.
Note that there is one problem with moving away from type names
here: it turns out that style properties only work if the selector
uses the type name.
Matthias Clasen [Fri, 23 Oct 2015 01:40:31 +0000 (21:40 -0400)]
switch: Convert to element names
Use the element names switch and slider for the two css nodes,
and drop the .trough and .slider classes.
Matthias Clasen [Fri, 23 Oct 2015 01:00:12 +0000 (21:00 -0400)]
widget: Always set the type on css nodes
See the previous commit for why this is necessary.
Also make gtk_widget_class_set_css_name work by looking at
the correct class for the name.
Note for future reference: GTK_WIDGET_GET_CLASS() does not
work in the instance init function.
Matthias Clasen [Fri, 23 Oct 2015 00:58:52 +0000 (20:58 -0400)]
css node declaration: Allow both name and type to be set
The widget path machinery assumes that we always have types,
and without this change, it will start spewing warnings when
we start to introduce node names.
Matthias Clasen [Fri, 23 Oct 2015 00:58:08 +0000 (20:58 -0400)]
inspector: Show names for css nodes
Currently, we don't have any css nodes with names, but we will soon.
Matthias Clasen [Thu, 22 Oct 2015 23:27:13 +0000 (19:27 -0400)]
Add since tags to new api
gtk_widget_class_set/get_css_name were missing it.
Timm Bäder [Thu, 22 Oct 2015 17:31:36 +0000 (19:31 +0200)]
GtkApplicationWindow: Add missing annotations
Matthias Clasen [Thu, 22 Oct 2015 18:32:08 +0000 (14:32 -0400)]
gtk-demo: Add a range example to the shortcuts demo
This shows off the new range display capability that I just added.
Matthias Clasen [Thu, 22 Oct 2015 18:31:06 +0000 (14:31 -0400)]
shortcuts: Support ranges in the display of shortcuts
Repeating Alt-1 to Alt-9 as individual shortcuts looks really boring,
so allow compressing such ranges by specifying <Alt>1...9.
Benjamin Otte [Thu, 22 Oct 2015 18:29:10 +0000 (20:29 +0200)]
notebook: On drag window hide, fix css nodes
Benjamin Otte [Thu, 22 Oct 2015 16:42:56 +0000 (18:42 +0200)]
switch: Use the right state when querying padding
We were using the state of the widget node, not the state of the slider
node.
This caused layout loops due to invalidations.
Matthias Clasen [Thu, 22 Oct 2015 15:50:49 +0000 (11:50 -0400)]
win32: Fix introspection syntax
Owen W. Taylor [Tue, 20 Oct 2015 20:45:52 +0000 (16:45 -0400)]
testgtk/Alpha Window: fix the drawn area when we are drawing decorations
A GtkWindow's allocation includes the titlebar, borders, and shadows; we
only want to draw our custom alpha content over the child allocation of
the GtkWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=756886
Owen W. Taylor [Tue, 20 Oct 2015 20:43:06 +0000 (16:43 -0400)]
GtkWindow: draw the frame and shadow even for app-paintable windows
If a window is decorated, we need to draw the frame and shadow, even if
it is app-paintable - it's just nonsense to have a frame that we handle
events on, but expect the app to paint it. (We paint the titlebar in
any case.) If a client wants to handle all painting, it should use an
undecorated window.
https://bugzilla.gnome.org/show_bug.cgi?id=756886
Owen W. Taylor [Tue, 20 Oct 2015 16:39:57 +0000 (12:39 -0400)]
Guard against selection requestor disappearing
We made a number of unchecked accesses to the selection requestor,
which could cause X errors if the selection requestor vanished
(or we were sent invalid events). Add error traps around all of them.
See https://bugzilla.redhat.com/show_bug.cgi?id=
1210814 for an
example of a crash that could be caused by this. (There are about
1000 instances of such a crash in http://retrace.fedoraproject.org
though no linked bug reports specifically talk about cut-and-paste
or DND.)
https://bugzilla.gnome.org/show_bug.cgi?id=756881
Benjamin Otte [Wed, 14 Oct 2015 17:19:36 +0000 (19:19 +0200)]
iconcache: Remove unused function
Benjamin Otte [Mon, 7 Sep 2015 19:42:25 +0000 (21:42 +0200)]
window: Name the decoration style
Benjamin Otte [Mon, 7 Sep 2015 19:37:07 +0000 (21:37 +0200)]
window: Add gtk_widget_class_set_css_name()
This is to replace using class names as CSS names.
Benjamin Otte [Mon, 7 Sep 2015 19:31:57 +0000 (21:31 +0200)]
window: Refactor function
Move gtk_style_context_save() into the function that sets up the
decoration rendering.
Benjamin Otte [Mon, 7 Sep 2015 10:30:44 +0000 (12:30 +0200)]
notebook: Remove "prelight-page" class
Instead, just use the "tab:hover" selector
Benjamin Otte [Mon, 7 Sep 2015 10:26:33 +0000 (12:26 +0200)]
notebook: Remove "active-page" class
Instead, just use the "tab:active" selector
Benjamin Otte [Mon, 7 Sep 2015 10:20:54 +0000 (12:20 +0200)]
notebook: Remove funciton by folding it into callers
Benjamin Otte [Mon, 7 Sep 2015 10:11:09 +0000 (12:11 +0200)]
notebook: Refactor internal function
Don't return the state anymore as the function doesn't even look at the
state. Instead, make the callers that need the state query it manually.
Benjamin Otte [Mon, 7 Sep 2015 10:08:45 +0000 (12:08 +0200)]
notebook: Make tab positions permanent
... on the tab CssNodes.
Benjamin Otte [Mon, 7 Sep 2015 09:56:03 +0000 (11:56 +0200)]
notebook: Remove last traces of regions
Now that we don't use regions anymore, there's no need to update
anything when the regions change.
Benjamin Otte [Mon, 7 Sep 2015 09:52:55 +0000 (11:52 +0200)]
notebook: Set reorderable-page style class properly
Set it when the reorderable state changes, not just when rendering.
Benjamin Otte [Mon, 7 Sep 2015 09:39:55 +0000 (11:39 +0200)]
notebook: Set active state properly
Don't update it on save/restore, actually set it when it changes.
Benjamin Otte [Mon, 7 Sep 2015 00:15:25 +0000 (02:15 +0200)]
notebook: Set prelight state properly
Don't update it on save/restore, actually set it when it changes.
Benjamin Otte [Sun, 6 Sep 2015 23:44:53 +0000 (01:44 +0200)]
notebook: Use CssNodes instead of regions
This almost makes CSS work again with notebooks.
Benjamin Otte [Sun, 6 Sep 2015 23:26:19 +0000 (01:26 +0200)]
notebook: Move style_context_save() into function
This is for future changes.
Benjamin Otte [Tue, 8 Sep 2015 17:31:59 +0000 (19:31 +0200)]
css: Remove macros that were used only with regions
Benjamin Otte [Tue, 8 Sep 2015 17:31:37 +0000 (19:31 +0200)]
cssmatcher: Remove matching API for regions
Benjamin Otte [Sun, 6 Sep 2015 05:36:57 +0000 (07:36 +0200)]
treeview: Use a cssnode instead of regions
This makes Treeview headers work again like before region support was
removed.
Benjamin Otte [Sun, 6 Sep 2015 05:36:02 +0000 (07:36 +0200)]
API: cssselector: Stop supporting regions
The namespace that belonged to regions is supposed to be used for
CssNode names.
Benjamin Otte [Sat, 5 Sep 2015 23:46:24 +0000 (01:46 +0200)]
treeviewcolumn: Create button on init
This way, the button is always available and the code doesn't have to
special case this condition.
Benjamin Otte [Mon, 16 Feb 2015 22:05:05 +0000 (23:05 +0100)]
switch: Port to GtkCssNode
This is a simple port, no code modifications so far other than replacing
gtk_style_context_save() with gtk_style_context_save_to_node().
Benjamin Otte [Mon, 16 Feb 2015 15:37:33 +0000 (16:37 +0100)]
stylecontext: Add gtk_style_context_save_to_node()
To be used instead of gtk_style_context_save() with persistent nodes.
Benjamin Otte [Sat, 5 Sep 2015 04:58:17 +0000 (06:58 +0200)]
stylecontext: Add gtk_style_context_add_named()
This is an intermediate step for cssnode introduction. It gives a name
for the node created by saving the style context.
Benjamin Otte [Sat, 5 Sep 2015 04:39:10 +0000 (06:39 +0200)]
cssmatcher: Marshal name to matcher
... and use it in the node matcher.
Also rename function from _gtk_css_matcher_get_type() to
_gtk_css_matcher_get_name().
Benjamin Otte [Sat, 5 Sep 2015 04:31:32 +0000 (06:31 +0200)]
cssnode: Add setters/getters for name
Benjamin Otte [Fri, 4 Sep 2015 17:38:50 +0000 (19:38 +0200)]
cssnodedeclaration: Add possibility to set the name
This is supposed to be a replacement for setting the type. So far, both
options are possible - either will unset the other.
Benjamin Otte [Sat, 5 Sep 2015 19:44:13 +0000 (21:44 +0200)]
treeview: Remove "row" and "col" regions
They aren't used by the theme and we want to get rid of regions.
Piotr Drąg [Thu, 22 Oct 2015 00:01:05 +0000 (02:01 +0200)]
Updated POTFILES.in and POTFILES.skip
Matthias Clasen [Wed, 21 Oct 2015 21:15:17 +0000 (17:15 -0400)]
Update NEWS to mention help overlays
Matthias Clasen [Wed, 21 Oct 2015 19:48:20 +0000 (15:48 -0400)]
Update POTFILES.in
Matthias Clasen [Wed, 21 Oct 2015 04:14:38 +0000 (00:14 -0400)]
widget-factory: Add an automatic help overlay
This commit add some more keyboard shortcuts to gtk3-widget-factory,
and adds a help overlay documenting them. This examle uses the
automatic resource loading support in GtkApplication.
Matthias Clasen [Wed, 21 Oct 2015 04:11:59 +0000 (00:11 -0400)]
Add automatic help overlay support to GtkApplication
When the $(resource_prefix)/gtk/help-overlay.ui resource exists,
load a GtkShortcutsWindow from it for each GtkApplicationWindow,
and set up a win.show-help-overlay action with accels <Primary>F1
and <Primary>? to show it.
Matthias Clasen [Sun, 11 Oct 2015 20:48:08 +0000 (16:48 -0400)]
gtk-demo: Add a GtkShortcutsWindow demo
This example implements the mockups from the help overlay design,
showing off the various features of GtkShortcutsWindow.
Matthias Clasen [Sun, 11 Oct 2015 20:40:48 +0000 (16:40 -0400)]
Add some styling for GtkShortcutsWindow
Add some keycap frame around keysyms, and make the stack switcher
buttons rounds. This is very provisional.
Matthias Clasen [Sun, 11 Oct 2015 20:39:18 +0000 (16:39 -0400)]
Add GtkShortcutsWindow
This is a toplevel window that is tailored towards showing
help for shortcuts in an application. The implementation closely
follows this design: https://wiki.gnome.org/Design/OS/HelpOverlay
This implementation is inspired by earlier work in gnome-builder,
thanks to Christian Hergert.
https://bugzilla.gnome.org/show_bug.cgi?id=756428
Matthias Clasen [Sun, 11 Oct 2015 22:54:27 +0000 (18:54 -0400)]
builder: Support creating GFile objects
This is useful, e.g. when creating GFileIcon objects.
Matthias Clasen [Tue, 20 Oct 2015 00:42:52 +0000 (20:42 -0400)]
Don't use g_slist_next in the testsuite
We generally use ->next directly.
Matthias Clasen [Tue, 20 Oct 2015 00:42:12 +0000 (20:42 -0400)]
Don't use g_slist_next in gtktreeview.c
We generally use ->next directly.
Matthias Clasen [Tue, 20 Oct 2015 00:41:29 +0000 (20:41 -0400)]
Don't use g_slist_next in gtktreemodel.c
We generally use ->next directly.
Matthias Clasen [Tue, 20 Oct 2015 00:40:49 +0000 (20:40 -0400)]
Don't use g_slist_next in gtktextview.c
We generally use ->next directly.